<?php
/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of T163WeiboClient
 *
 * @author lizhi
 * @See http://open.t.163.com/wiki/index.php?title=Document
 * @Source https://weibophpclient.googlecode.com/svn/trunk/
 */
 class T163WeiboClient extends WeiboClient {

    /**
     * 构造函数
     *
     * @access public
     * @param mixed $akey 微博开放平台应用APP KEY
     * @param mixed $skey 微博开放平台应用APP SECRET
     * @param mixed $accecss_token OAuth认证返回的token
     * @param mixed $accecss_token_secret OAuth认证返回的token secret
     * @return void
     */
    function __construct( $akey , $skey , $accecss_token , $accecss_token_secret )
    {
        //$this->oauth = new WeiboOAuth( $akey , $skey , $accecss_token , $accecss_token_secret );
        $this->oauth = new T163WeiboOAuth($akey , $skey , $accecss_token , $accecss_token_secret);
    }
    
    public function search($keyword, $page, $count) {
        
    }
    
    public function reply($sid, $text, $cid) {
        
    }
 }
 
 class T163WeiboOAuth extends WeiboOAuth{
     
     public $host = "http://api.t.163.com/";
     
     
     function accessTokenURL() { return 'http://api.t.163.com/oauth/access_token'; }
    /** 
     * @ignore 
     */ 
    function authenticateURL() { return 'http://api.t.163.com/oauth/authenticate'; }
    /** 
     * @ignore 
     */ 
    function authorizeURL() { return 'http://api.t.163.com/oauth/authorize'; }
    /** 
     * @ignore 
     */ 
    function requestTokenURL() { return 'http://api.t.163.com/oauth/request_token'; }   
 }